<?php
$key = isset($_GET['key'])?$_GET['key']:null;//获取搜索值
if(!$key){
	$key=isset($_POST['key'])?$_POST['key']:null;//获取搜索值(如果获取get请求为空，则获取post请求)
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo top_keys(7)?></title>
<meta name="description" content="<?php echo top_keys(9)?>">
<meta name="keywords" content="<?php echo top_keys(8)?>">
<link href="<?php echo TPL_URL?>style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="body">
  <?php require('head.php')?>
  <div id="middle">
    <div id="left">
      <div id="type">
        <div class="title">
          <h1>栏目分类</h1>
        </div>
        <ul>
          <?php echo get_news_type_ul($lanmu) ?>
        </ul>
      </div>
      <!-- type --></div>
    <!-- left -->
    <div id="right">
      <div class="title">
        <h1>搜索结果</h1>
        <h3><a href="index.html">首页</a> > 搜索页</h3>
      </div>
      <div id="news_list">
        <ul>
          <?php echo show_search_ul($key,80) ?>
        </ul>
        <div class="clear"></div>
      </div>
      <!-- news_list --></div>
    <!-- right -->
    <div class="clear"></div>
  </div>
  <?php require('bot.php')?>
</div>
<!-- body -->
</body>
</html>
